// 增量添加webpack配置的文件，类似于vue.config.js文件
// 给nodejs所用，webpack就是nodejs客户端
const path = require('path')
const { addDecoratorsLegacy, override } = require('customize-cra')

const customize = () => (config) => {
    config.resolve.alias['@'] = path.resolve( 'src')
    return config
}

module.exports = override(
    addDecoratorsLegacy(),
    customize()
)